/*
* FILENAME:		stack.c/stack.h 
* CREATED AT:		2012/May/28
* DECRITION:		the module stack, include sequence implement and list implement
* 
* MODULE:		linead list
* PLATFORM:		ubuntu-12.04/gcc-4.6.3
* AUTHOR:		incarnation-lee
* 
* ----------------------REVISION HISTROY------------------------
* No.	Date	Revised by	Function	Descrition
* 1	12/5/28	incar-lee	stack_demo	created the stack list demo function
*
*/

/* Standard C */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>

/* linux related */
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>

/* user defined */
#include "externals.h"
#include "udgtd.h"
#include "stack.h"


STATUS stack_demo()
{
	STATUS result = 0;

	/* stack in sequence implement */
	result = stack_seq_demo();
	if(__builtin_expect(!!result,0))
		return -1;
	/* stack application in Hex convert */
	result = stack_app_demo();
	if(__builtin_expect(!!result,0))
		return -1;

	return 0;
}
